<!DOCTYPE html>
<html lang="zh-CN">
  <head>
    <meta charset="UTF-8" />
    <meta
      name="viewport"
      content="width=device-width,user-scalable=no,initial-scale=1,maximum-scale=1,minimum-scale=1,viewport-fit=cover"
    />
    <meta http-equiv="X-UA-Compatible" content="ie=edge" />
    <title>一键三连</title>
    <link rel="stylesheet" href="./index.css" />
  </head>

  <body>
    <div class="box">
      <div class="item">
        <div class="good">
          <div class="up"></div>
        </div>
        <div class="circle">
          <div class="right-circlr"></div>
          <div class="left-circlr"></div>
        </div>
        <div class="ring"></div>
        <div class="oval-bar-box-little">
          <div class="oval-bar-little"></div>
          <div class="oval-bar-little"></div>
          <div class="oval-bar-little"></div>
          <div class="oval-bar-little"></div>
        </div>
        <div class="oval-bar-box-larger">
          <div class="oval-bar-larger"></div>
          <div class="oval-bar-larger"></div>
          <div class="oval-bar-larger"></div>
          <div class="oval-bar-larger"></div>
        </div>
      </div>

      <div class="item">
        <div class="coin">
          <div class="half-circle"></div>
          <div class="circle-bar"></div>
        </div>
        <div class="circle">
          <div class="right-circlr"></div>
          <div class="left-circlr"></div>
        </div>
        <div class="ring"></div>
        <div class="oval-bar-box-little">
          <div class="oval-bar-little"></div>
          <div class="oval-bar-little"></div>
          <div class="oval-bar-little"></div>
          <div class="oval-bar-little"></div>
        </div>
        <div class="oval-bar-box-larger">
          <div class="oval-bar-larger"></div>
          <div class="oval-bar-larger"></div>
          <div class="oval-bar-larger"></div>
          <div class="oval-bar-larger"></div>
        </div>
      </div>
      <div class="item">
        <div class="start">
          <div class="angle top"></div>
          <div class="angle right"></div>
          <div class="angle left"></div>
          <div class="angle right-bottom"></div>
          <div class="angle left-bottom"></div>
        </div>
        <div class="circle">
          <div class="right-circlr"></div>
          <div class="left-circlr"></div>
        </div>
        <div class="ring"></div>
        <div class="oval-bar-box-little">
          <div class="oval-bar-little"></div>
          <div class="oval-bar-little"></div>
          <div class="oval-bar-little"></div>
          <div class="oval-bar-little"></div>
        </div>
        <div class="oval-bar-box-larger">
          <div class="oval-bar-larger"></div>
          <div class="oval-bar-larger"></div>
          <div class="oval-bar-larger"></div>
          <div class="oval-bar-larger"></div>
        </div>
      </div>
    </div>
    <audio src="./sounds/1.mp3"></audio>
    <audio src="./sounds/2.mp3"></audio>
    <audio src="./sounds/3.mp3"></audio>
    <script>
      const items = document.querySelectorAll('.item')
      const audios = document.querySelectorAll('audio')

      items.forEach((item, index) => {
        item.onclick = () => {
          audios[index].currentTime = 0
          audios[index].play()
        }
      })
    </script>
  </body>
</html>
